package cn.hanyx.coder.design.pattern.structural.decorator;

/**
 * ADecorator
 *
 * @author hanyx
 * @date 2020/07/16
 */
public class ADecorator implements IA {
    private IA a ;

    public ADecorator(IA a) {
        this.a = a;
    }

    @Override
    public void f() {
        System.out.println("功能增强代码");
        a.f();
    }
}
